// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 
04ED: load_animation  "STRIP"
:Noname_2
0247: load_model #SNIPER 
0247: load_model #SHOTGSPA 
0247: load_model #AK47 
0247: load_model #MP5LNG 
0247: load_model #SAWNOFF 
0247: load_model #DESERT_EAGLE 
0247: load_model #COLT45 
0247: load_model #MICRO_UZI 
0247: load_model #ADMIRAL 
0247: load_model #CELLPHONE 
038B: load_requested_models 
jump @start
0002: jump @Noname_84 

:failed
0ACD: show_text_highpriority "~r~Model load failed!" time 3000
end_thread

:Noname_84
0001: wait 0 ms 
077E: get_active_interior_to $Active_Interior 
0ADF: add_dynamic_GXT_entry "custh00" text "~y~Call Tales of Gaming" 
0ADF: add_dynamic_GXT_entry "custh01" text "Call Tales of Gaming Instantly" 
0ADF: add_dynamic_GXT_entry "custh02" text "Call Tales of Gaming" 
08D4: 3@ = create_panel_with_title 'custh00' position 340.0 120.0 width 240.0 columns 1 interactive 1 background 1 alignment 0 
08DB: set_panel 3@ column 0 header 'dummy' data 'custh01' 'custh02' 'dummy' 'dummy' 'dummy' 'dummy' 'dummy' 'dummy' 'dummy' 'dummy' 'dummy' 'dummy' 
090E: set_panel 3@ active_row 0 
01B4: set_player $PLAYER_CHAR can_move 0 
03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 

:Noname_387
0001: wait 0 ms 
00D6: if 
0256:   player $PLAYER_CHAR defined 
004D: jump_if_false @Noname_2151 
00D6: if 
00E1:   player 0 pressed_key 15 
004D: jump_if_false @Noname_431 
0ACD: show_text_highpriority "End." time 1300 
end_thread
0002: jump @Noname_2151 

:Noname_431
00D6: if 
00E1:   player 0 pressed_key 16 
004D: jump_if_false @Noname_387 
03E6: remove_text_box 
08D7: 4@ = panel 3@ active_row 
00D6: if 
0039:   4@ == 0 
004D: jump_if_false @Noname_997 
01B4: set_player $PLAYER_CHAR can_move 1 
03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 
08DA: remove_panel 3@ 
03E6: remove_text_box 
:start
0AAC: 20@ = load_audiostream "cleo\homies\call3.mp3" 
0AAC: 21@ = load_audiostream "cleo\homies\call.mp3" 
0AAC: 22@ = load_audiostream "cleo\homies\Phonesound.mp3" 
0AAC: 23@ = load_audiostream "cleo\homies\enter.mp3" 
0AAC: 24@ = load_audiostream "cleo\homies\dead.mp3"        {
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1 
0001: wait 2000 ms 
0AAD: set_mp3 22@ perform_action 1 
0ACD: show_text_highpriority "(Phone music playing)" time 1300 
0001: wait 1300 ms 
0AAD: set_mp3 21@ perform_action 1 
0ACD: show_text_highpriority "(((Phone ringing)))" time 2500 
0001: wait 2500 ms 
0AAD: set_mp3 20@ perform_action 1 
0ACD: show_text_highpriority "(Tales of Gaming on phone)" time 3000 
0001: wait 6500 ms 
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0          }
0001: wait 500 ms 
33@ > 0
023C: load_special_actor 'creepy2' as 6 // models 290-299 
038B: load_requested_models 
04C4: store_coords_to 28@ 29@ 30@ from_actor $PLAYER_ACTOR with_offset 0.0 5.0 -1.0 
:loaded2
wait 0
if
023D:   special_actor 6 loaded

jf @failed
009A: 0@ = create_actor_pedtype 8 model #SPECIAL06 at 28@ 29@ 30@ 
0223: set_actor 0@ health_to 500 
0446: set_actor 0@ dismemberment_possible 0 
07FE: set_actor 0@ fighting_style_to 15 moves 6 
02E2: set_actor 0@ weapon_accuracy_to 40 
07DD: set_actor 0@ attack_rate 70 // previously known as temper_to 
04D8: set_actor 0@ drowns_in_water 0 
01B2: give_actor 0@ weapon 29 ammo 99999 // Load the weapon model before using this 
0245: set_actor 0@ walk_style_to "player" 
03FE: set_actor 0@ money 2000 
081A: set_actor 0@ weapon_skill_to 0 
//put_actor 0@ in_group $PLAYER_GROUP 
0946: set_actor 0@ actions_uninterupted_by_weapon_fire 0 
09B5: set_actor 0@ signal_after_kill 1 
094E: set_actor 0@ mute_pain_audio 1 
0187: 19@ = create_marker_above_actor 0@ 
0165: set_marker 19@ color_to 2 
018B: set_marker 19@ radar_mode 2 
0296: unload_special_actor 6 
32@ = 0
0002: jump @Noname_2179 

:Noname_997
00D6: if and
0038:   $Active_Interior == 0 
0039:   4@ == 1 
004D: jump_if_false @Noname_1891 
01B4: set_player $PLAYER_CHAR can_move 1 
03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 
08DA: remove_panel 3@ 
03E6: remove_text_box 
0AAC: 20@ = load_audiostream "cleo\homies\call3.mp3" 
0AAC: 21@ = load_audiostream "cleo\homies\call.mp3" 
0AAC: 22@ = load_audiostream "cleo\homies\Phonesound.mp3" 
0AAC: 23@ = load_audiostream "cleo\homies\enter.mp3" 
0AAC: 24@ = load_audiostream "cleo\homies\dead.mp3" 
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1 
0001: wait 2000 ms 
0AAD: set_mp3 22@ perform_action 1 
0ACD: show_text_highpriority "(Phone music playing)" time 1300 
0001: wait 1300 ms 
0AAD: set_mp3 21@ perform_action 1 
0ACD: show_text_highpriority "(((Phone ringing)))" time 2500 
0001: wait 2500 ms 
0AAD: set_mp3 20@ perform_action 1 
0ACD: show_text_highpriority "(Tales of Gaming on phone)" time 3000 
0001: wait 3500 ms 
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 
0001: wait 500 ms 
023C: load_special_actor 'creepy2' as 6 // models 290-299 
038B: load_requested_models 
04C4: store_coords_to 12@ 13@ 14@ from_actor $PLAYER_ACTOR with_offset 70.0 0.0 5.0 
02C1: store_to 12@ 13@ 14@ car_path_coords_closest_to 12@ 13@ 14@ 
04C4: store_coords_to 7@ 8@ 9@ from_actor $PLAYER_ACTOR with_offset 5.0 5.0 5.0 
:loaded
wait 0
if
023D:   special_actor 6 loaded

jf @failed
00A5: 1@ = create_car #ADMIRAL at 12@ 13@ 14@ 




0129: 0@ = create_actor_pedtype 8 model #SPECIAL06 in_car 1@ driverseat 
0229: set_car 1@ primary_color_to 0 secondary_color_to 0 
0224: set_car 1@ health_to 500 
0223: set_actor 0@ health_to 500 
0186: 18@ = create_marker_above_car 1@ 
0165: set_marker 18@ color_to 2 
03CC: enable_car 1@ stuck_check_distance_to 2.0 time_to 2000 
00AE: set_car 1@ traffic_behaviour_to 2 
018B: set_marker 18@ radar_mode 2 
0446: set_actor 0@ dismemberment_possible 0 
07FE: set_actor 0@ fighting_style_to 15 moves 6 
02E2: set_actor 0@ weapon_accuracy_to 40 
07DD: set_actor 0@ attack_rate 70 // previously known as temper_to 
04D8: set_actor 0@ drowns_in_water 0 
01B2: give_actor 0@ weapon 29 ammo 99999 // Load the weapon model before using this 
0245: set_actor 0@ walk_style_to "player" 
03FE: set_actor 0@ money 2000 
081A: set_actor 0@ weapon_skill_to 0 
0946: set_actor 0@ actions_uninterupted_by_weapon_fire 0 
09B5: set_actor 0@ signal_after_kill 1 
04BA: set_car 1@ speed_to 80.0 
00AD: set_car 1@ max_speed_to 80.0 
094E: set_actor 0@ mute_pain_audio 1 
00AF: set_car 1@ driver_behaviour_to 4 
0296: unload_special_actor 6 
32@ = 0

:Noname_1652
0001: wait 0 ms 
00D6: if 
0104:   actor $PLAYER_ACTOR near_actor 0@ radius 5.0 5.0 5.0 sphere 0 
004D: jump_if_false @Noname_1768 
004D: jump_if_false @Noname_1652 
0633: AS_actor 0@ exit_car 
0164: disable_marker 18@ 
01C3: remove_references_to_car 1@ 
0001: wait 1500 ms 
0187: 19@ = create_marker_above_actor 0@ 
0165: set_marker 19@ color_to 2 
018B: set_marker 19@ radar_mode 2 
//put_actor 0@ in_group $PLAYER_GROUP 
0AAD: set_mp3 23@ perform_action 1 
0001: wait 3000 ms 
0002: jump @Noname_2179 

:Noname_1768
0001: wait 0 ms 
00D6: if or
0118:   actor 0@ dead 
0119:   car 1@ wrecked 
004D: jump_if_false @Noname_1652 
004D: jump_if_false @Noname_1768 
0ACD: show_text_highpriority "Tales of Gaming has been killed." time 3000 
01C3: remove_references_to_car 1@ 
0001: wait 3000 ms 
034F: destroy_actor_with_fade 0@ 
0AAE: release_mp3 20@ 
0AAE: release_mp3 21@ 
0AAE: release_mp3 22@ 
0AAE: release_mp3 23@ 
0AAE: release_mp3 24@ 
0001: wait 2500 ms 
0002: jump @Noname_2 

:Noname_1891
00D6: if 
0039:   4@ == 2 
004D: jump_if_false @Noname_1916 
0002: jump @Noname_2179 

:Noname_1916
00D6: if 
0039:   4@ == 3 
004D: jump_if_false @Noname_1941 
0002: jump @Noname_2179 

:Noname_1941
00D6: if 
0039:   4@ == 4 
004D: jump_if_false @Noname_1966 
0002: jump @Noname_2151 

:Noname_1966
00D6: if 
0039:   4@ == 5 
004D: jump_if_false @Noname_1991 
0002: jump @Noname_2151 

:Noname_1991
00D6: if 
0039:   4@ == 6 
004D: jump_if_false @Noname_2016 
0002: jump @Noname_2151 

:Noname_2016
00D6: if 
0039:   4@ == 7 
004D: jump_if_false @Noname_2041 
0002: jump @Noname_2151 

:Noname_2041
00D6: if 
0039:   4@ == 8 
004D: jump_if_false @Noname_2066 
0002: jump @Noname_2151 

:Noname_2066
00D6: if 
0039:   4@ == 9 
004D: jump_if_false @Noname_2091 
0002: jump @Noname_2151 

:Noname_2091
00D6: if 
0039:   4@ == 10 
004D: jump_if_false @Noname_2121 
0001: wait 200 ms 
0002: jump @Noname_2151 

:Noname_2121
00D6: if 
0039:   4@ == 11 
004D: jump_if_false @Noname_387 
0001: wait 200 ms 
0002: jump @Noname_2151 

:Noname_2151
01B4: set_player $PLAYER_CHAR can_move 1 
03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 
08DA: remove_panel 3@ 
03E6: remove_text_box 
0002: jump @Noname_2 

:Noname_2179
0AAC: 25@ = load_audiostream "cleo\homies\talk1.mp3" 
0AAC: 26@ = load_audiostream "cleo\homies\talk2.mp3" 
0AAC: 27@ = load_audiostream "cleo\homies\talk4.mp3" 
0AAC: 28@ = load_audiostream "cleo\homies\talk3.mp3" 
0AAC: 29@ = load_audiostream "cleo\homies\talk7.mp3" 
0AAC: 30@ = load_audiostream "cleo\homies\talk8.mp3" 
0001: wait 1000 ms 

:Noname_2352
0209: 31@ = random_int_in_ranges 0 6 
0001: wait 0 ms 
00D6: if 
0ADC:   test_cheat "tales2"
004D: jump_if_false @Noname_2508 
0001: wait 500 ms 
0ACD: show_text_highpriority "Tales of Gaming has been dismissed." time 3000 
0164: disable_marker 19@ 
0AAE: release_mp3 20@ 
0AAE: release_mp3 21@ 
0AAE: release_mp3 22@ 
0AAE: release_mp3 23@ 
0AAE: release_mp3 24@ 
0AAE: release_mp3 25@ 
0AAE: release_mp3 26@ 
0AAE: release_mp3 27@ 
0AAE: release_mp3 28@ 
0AAE: release_mp3 29@ 
0AAE: release_mp3 30@ 
0001: wait 2500 ms    
end_thread

0002: jump @Noname_2 
//put_actor $ACTOR_RYDER in_group $PLAYER_GROUP

:Noname_2508
0001: wait 0 ms 
00D6: if or
32@ > 70000
0118:   actor 0@ dead 
004D: jump_if_false @Noname_2674 
0829: actor 0@ perform_animation "strip_G" IFP_file "STRIP" rate 4.0 time 0 and_dies
32@ = 0
05BE: AS_actor 0@ die
0001: wait 150 ms 
0326: 2@ = create_actor 0@ fire 
0AAD: set_mp3 24@ perform_action 1 
0164: disable_marker 19@ 
0AAE: release_mp3 20@ 
0AAE: release_mp3 21@ 
0AAE: release_mp3 22@ 
0AAE: release_mp3 23@ 
0AAE: release_mp3 25@ 
0AAE: release_mp3 26@ 
0AAE: release_mp3 27@ 
0AAE: release_mp3 28@ 
0AAE: release_mp3 29@ 
0AAE: release_mp3 30@ 

0001: wait 2500 ms 
0ACD: show_text_highpriority "Tales of Gaming has been killed." time 3000 
wait 5000
02D1: remove_fire 2@

0001: wait 15000 ms 
actor.DestroyInstantly(0@)
//034F: destroy_actor_with_fade 0@ 
0001: wait 1500 ms 
0AAE: release_mp3 24@ 
end_thread
0002: jump @Noname_2 

:Noname_2674
0001: wait 0 ms 
00D6: if and
0039:   31@ == 0 
0019:   33@ > 15000 
0104:   actor $PLAYER_ACTOR near_actor 0@ radius 60.0 60.0 60.0 sphere 0 
02E0:   actor 0@ firing_weapon 
004D: jump_if_false @Noname_2760 
0AAD: set_mp3 25@ perform_action 1 
0006: 33@ = 0 
01B2: give_actor 0@ weapon 34 ammo 99999 // Load the weapon model before using this 

:Noname_2760
00D6: if and
0039:   31@ == 1 
0019:   33@ > 15000 
0104:   actor $PLAYER_ACTOR near_actor 0@ radius 60.0 60.0 60.0 sphere 0 
02E0:   actor 0@ firing_weapon 
004D: jump_if_false @Noname_2849 
0AAD: set_mp3 26@ perform_action 1 
081A: set_actor 0@ weapon_skill_to 0 
01B2: give_actor 0@ weapon 24 ammo 99999 // Load the weapon model before using this 
0006: 33@ = 0 

:Noname_2849
00D6: if and
0039:   31@ == 2 
0019:   33@ > 15000 
0104:   actor $PLAYER_ACTOR near_actor 0@ radius 60.0 60.0 60.0 sphere 0 
02E0:   actor 0@ firing_weapon 
004D: jump_if_false @Noname_2938 
0AAD: set_mp3 27@ perform_action 1 
0006: 33@ = 0 
081A: set_actor 0@ weapon_skill_to 0 
01B2: give_actor 0@ weapon 26 ammo 99999 // Load the weapon model before using this 

:Noname_2938
00D6: if and
0039:   31@ == 3 
0019:   33@ > 15000 
0104:   actor $PLAYER_ACTOR near_actor 0@ radius 60.0 60.0 60.0 sphere 0 
02E0:   actor 0@ firing_weapon 
004D: jump_if_false @Noname_3020 
0AAD: set_mp3 28@ perform_action 1 
0006: 33@ = 0 
01B2: give_actor 0@ weapon 29 ammo 99999 // Load the weapon model before using this 

:Noname_3020
00D6: if and
0039:   31@ == 4 
0019:   33@ > 15000 
0104:   actor $PLAYER_ACTOR near_actor 0@ radius 60.0 60.0 60.0 sphere 0 
02E0:   actor 0@ firing_weapon 
004D: jump_if_false @Noname_3102 
0AAD: set_mp3 29@ perform_action 1 
0006: 33@ = 0 
01B2: give_actor 0@ weapon 30 ammo 99999 // Load the weapon model before using this 

:Noname_3102
00D6: if and
0039:   31@ == 5 
0019:   33@ > 15000 
0104:   actor $PLAYER_ACTOR near_actor 0@ radius 60.0 60.0 60.0 sphere 0 
02E0:   actor 0@ firing_weapon 
004D: jump_if_false @Noname_2352 
0AAD: set_mp3 30@ perform_action 1 
0006: 33@ = 0 
081A: set_actor 0@ weapon_skill_to 0 
01B2: give_actor 0@ weapon 28 ammo 99999 // Load the weapon model before using this 
0002: jump @Noname_2352 
